﻿using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.IO;
using ExtBusiness;
using ExtBusiness.Interface;
using System.Configuration;
using System.Web.Security;

public partial class office_OnLineCorrection :PageBase
{
    ClsSubmitInfo clsSubmit = new ClsSubmitInfo();
    DataTable dt = new DataTable();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindInfo();
        }
    }

    /// <summary>
    /// 绑定待处理业务数据
    /// </summary>
    /// <!--update by zhongjian 20091019-->
    private void BindInfo()
    {
        dt = clsSubmit.GetCorrectionInfo(Request.QueryString["iid"], txtIID.Value, yxj.SelectedIndex.ToString());
        gridviewCar.DataSource = dt;
        gridviewCar.RecordCount = dt.Rows.Count;
        gridviewCar.DataBind();
    }

    /// <summary>
    /// datagrid数据加载
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void recvgrid_OnLoadData(object sender, EventArgs e)
    {
        this.BindInfo();
    }

    protected void btnQuery_Click(object sender, EventArgs e)
    {
        BindInfo();
    }

    public string GetRemark(IDataItemContainer row)
    {
        string strRemark = DataBinder.Eval(row.DataItem, "stop_remark").ToString();
        if (strRemark.Length < 10)
            return strRemark;
        else
        {
            strRemark = strRemark.Substring(0, 10) + "...";
            return strRemark;
        }
    }
}
